const obj = {
    name:'张三',
    sayHello(){
        console.log(`${this.name}说你好`)
    }
}

// console.log(obj.name);
// obj.sayHello();

function callBackFn(fn){
    fn();
}

callBackFn(obj.sayHello);